Productive R Workflow Module 4

Author

Alberto F Cabrera

Published

August 2, 2024

1 Git and Github

This module is organized into 6 lessons. Those range from defining Github to revisiting old codes.

1.1 Lesson 1 What is Github

What is Github

GitHub is the ultimate online platform for hosting code, where millions of developers store and share their projects.

Anatomy of GitHub and desktop

1.2 Lesson 2 Github Desktop

The role of Github desktop in linking together computer and the cloud

GitHub Desktop linking desktop computer with cloud

1.3 Lesson 4 Commit

All changes take place in GitHub. None of the changes have been updated into the remote repository.

Incremental steps when committing changes

1.4 Lesson 5 Push

Now, it’s time to send them to the cloud. Let’s hit the push button! 🚀

Our work folder exists in duplicate: one version resides locally, while the other is stored on github.com.

Throughout the previous lessons, we’ve made changes to the local version of the repository, encapsulated in several commits.

Now, it’s time to synchronize the local changes with the version on GitHub! This process is accomplished through a procedure known as a push.

Pushing the local changes into GitHub cloud

Push change in GitHub Desktop

1.5 Lesson 6 From repo to website

Let’s explore how GitHub can transform it into a mini website, accessible through a URL.

Github allows to transform a repository in a website!

Click setting and then Pages.

1.6 Lesson 7 Cloning

You’ve just acquired a new computer 🎉. Now it’s time to replicate your GitHub Repository on it!

This process is known as cloning. Let’s delve into how it works.

Publishing versus cloning

Publishing is when you take your local work to start a new repository online (on GitHub).

Cloning is the opposite: you take your GitHub Repository and duplicate it on your computer.